The old should_use_csd() function would return FALSE if the GTK_CSD
environment variable is unset; the change in commit
c5e5ee67490e7e7
made it return TRUE if GTK_CSD is unset. This has a cascade effect
on the window size, which causes invalid rectangles to bubble down
to Pixman.
https://bugzilla.gnome.org/show_bug.cgi?id=751140
csd_env = g_getenv ("GTK_CSD");
- /* If GTK_CSD is unset we default to CSD support */
- return csd_env == NULL || (strcmp (csd_env, "1") == 0);
+ return (g_strcmp0 (csd_env, "1") == 0);
}
static void